#pragma once 
class LogicController
{
public:
    LogicController();
    virtual ~LogicController();
    void StartLogin(std::wstring & p_UserName, std::wstring & p_Password
        , std::wstring & p_Service, HWND p_hLogin);
    void SetLoginResult(int iResult);
    void GetCurrentUserInfo();
    void SetVCardInfo(const JID& jid, const VCard* vcard);
    std::list<std::string> GetFriendGroups();
    std::list<string> * GetFriendByGroups(string Group);
    void ReceiveMessage(JID jid, string body);
    void SendMSG(string * msg, string *remoteId);
    void GetAllFriendUserInfo();
    void InitController();
    void SetMainHwnd(HWND p_hMain)
    {
        m_hMain = p_hMain;
    }
private:
    HWND m_hLogin; 
    HWND m_hMain;
    VCard * m_UserVCard;
}; 
